import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DetailComponent } from './detail/detail.component';
import { Routes, RouterModule } from '@angular/router';
import { SharedModule } from '@shared';
import { ShopService } from './shop.service';

const routes: Routes = [
  { path: 'detail', component: DetailComponent }
];

@NgModule({
  declarations: [DetailComponent],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    SharedModule
  ],
  providers: [ShopService]
})
export class ShopModule { }
